-- GENERATED SPELL FOR [Giant Eye Tentacle] --


function spell0_15334(pUnit, Event) --@Eye Beam,n/a--
pUnit:FullCastSpellOnTarget(26134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15334', 2000, 1)
end

function spell1_15334(pUnit, Event) --@Ground Rupture,Self--
pUnit:FullCastSpellOnTarget(26478,pUnit)
pUnit:RegisterEvent('Sorts_15334', 604, 1)
end

function Sorts_15334(pUnit, Event)
local choix_sorts_15334 = math.random(0, 1)
if choix_sorts_15334 == 0 then
pUnit:RegisterEvent('spell0_15334', 1, 1)
end
if choix_sorts_15334 == 1 then
pUnit:RegisterEvent('spell1_15334', 1, 1)
end
end

function mob15334_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15334', math.random(1500, 3000), 1)
end

function mob15334_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15334_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15334_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15334, 1, 'mob15334_Action')
RegisterUnitEvent(15334, 2, 'mob15334_Leave')
RegisterUnitEvent(15334, 3, 'mob15334_Kill')
RegisterUnitEvent(15334, 4, 'mob15334_Die')
